package cn.sharp.bbs.dao;


import cn.sharp.bbs.entity.BO.PublishArticle;
import cn.sharp.bbs.entity.BO.SearchArticle;
import cn.sharp.bbs.entity.DO.*;

import java.util.List;

/**
 * @author 杨择润
 * @create 2022-07-11 15:57
 */
public interface PublishArticleDao {

    void publishArticle(PublishArticle publishArticle);

    void publishArticleLab(PublishArticle publishArticle);

    void publishArticleversion(PublishArticle publishArticle);

    void deleteArticle(Postversion postversion);

    List<Postversion> selectArticle(String s);

    List<Postversion> selectArticleTabs(int[] arr);

    List<Postversion> selectArticleAll(SearchArticle searchArticle);

    List<Label> selectTabs(Long postId);

    boolean trueLike(Like like);

    Long likeCount(Like like);

    boolean trueCollect(Collectpost collectpost);

    Long collectCount(Collectpost collectpost);

    boolean truefollowPost(Followpost followposttpost);

    Long followCount(Followpost followpost);

    boolean truefollowUser(Followuser followuser);

    String getImgpath(Long id);

    List<Postversion> selectUserArticle(Long id);

    Postversion searchArticleByid(Long postid);

    List<Comment> getArticleComment(Long postid);

    List<Comment> getArticleComment2(Long pcomid);



}
